<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>restaurantManager.jsp</title>
    <link href="${pageContext.request.contextPath }/css/waimaistyle.css"
	type=text/css rel=stylesheet />
	<style type="text/css">
		.save_restaurant{
			text-align: center;
		}
		.save_restaurant form input{
			margin-top: 10px;
		}
	</style>
  </head>
  
  <body>
   	<p align="center">更新指定店铺</p>
   	<div class="save_restaurant">
	   	<form action="${pageContext.request.contextPath }/admin/updateRestaurant" method="post" accept="application/x-www-form-urlencoded" accept-charset="utf-8">
	   		<input type="hidden" name="restaurantId" value="${restaurant.restaurantId}">
	   		<div>
	   			店铺名称：<input type="text" name="restaurantName" value="${restaurant.restaurantName }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			店铺密码：<input type="password" name="password" value="${restaurant.password }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			店铺头像：<input type="text" name="photo" value="${restaurant.photo }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			店铺地址：<input type="text" name="address" value="${restaurant.address }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			联系方式：<input type="text" name="phone" value="${restaurant.phone }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			起步费用：<input type="text" name="sendPrice" value="${restaurant.sendPrice }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			配送费用：<input type="text" name="deliveryPrice" value="${restaurant.deliveryPrice }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<div> 
	   			平均时间：<input type="text" name="deliveryTimeArg" value="${restaurant.deliveryTimeArg }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			配送范围：<input type="text" name="deliveryRange" value="${restaurant.deliveryRange }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		
	   		<div>
	   			商家星级：<input type="text" name="starLevelArg" value="${restaurant.starLevelArg }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			营业时间：<input type="text" name="deliveryRange" value="${restaurant.businessTime }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			店铺通知：<textarea name="notice" rows="5" cols="15" style="width: 472px; height: 70px">${restaurant.notice }</textarea>
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			月销售量：<input type="text" name="monthSales" value="${restaurant.monthSales }" style="width: 473px; ">
	   			<span>***************</span>
	   		</div>
	   		<input type="hidden" name="adminId" value="${restaurant.admin.adminId }">
	   		<input type="hidden" name="rest" value="false">
	   		<input type="submit" value="提交">
	   	</form>
    </div>
  </body>
</html>
